home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ggggeeeettttggggrrrroooouuuuppppssss((((2222)))) ggggeeeettttggggrrrroooouuuuppppssss((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _gggg_eeee_tttt_gggg_rrrr_oooo_uuuu_pppp_ssss - get supplementary group access list IDs
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>>
-
- iiiinnnntttt nnnnggggrrrrppppssss;;;;
-
- _P_O_S_I_X:
- nnnnggggrrrrppppssss ==== ggggeeeettttggggrrrroooouuuuppppssss((((iiiinnnntttt sssseeeettttlllleeeennnn,,,, ggggiiiidddd____tttt ****ggggiiiiddddsssseeeetttt))));;;;
-
- _B_S_D:
- nnnnggggrrrrppppssss ==== ggggeeeettttggggrrrroooouuuuppppssss((((iiiinnnntttt sssseeeettttlllleeeennnn,,,, iiiinnnntttt ****ggggiiiiddddsssseeeetttt))));;;;
-
- To use the BSD version of _g_e_t_g_r_o_u_p_s one must either
-
- 1) explicitly invoke it as _B_S_D_g_e_t_g_r_o_u_p_s or
-
- 2) link with the libbsd.a library:
-
- cc -o prog prog.c -lbsd
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _g_e_t_g_r_o_u_p_s retrieves the current group access list of the user process and
- stores it in the array _g_i_d_s_e_t. The parameter _s_e_t_l_e_n indicates the number
- of entries that may be placed in _g_i_d_s_e_t. The return value is the actual
- number of groups placed in _g_i_d_s_e_t, and this will never be greater than
- NNNNGGGGRRRROOOOUUUUPPPPSSSS____UUUUMMMMAAAAXXXX for the POSIX version, and NNNNGGGGRRRROOOOUUUUPPPPSSSS for the BSD version, as
- defined in <_s_y_s/_p_a_r_a_m._h>.
-
- As a special case, if the _s_e_t_l_e_n parameter is zero, _g_e_t_g_r_o_u_p_s returns the
- number of supplemental group IDs associated with the calling process
- without modifying the array pointed to by the _g_i_d_s_e_t argument.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- A successful call returns the number of groups in the group set. A value
- of -1 indicates that an error occurred, and the error code is stored in
- the global variable _e_r_r_n_o.
-
- EEEERRRRRRRROOOORRRRSSSS
- The possible errors for _g_e_t_g_r_o_u_p_s are:
-
- [EINVAL] The argument _s_e_t_l_e_n is smaller than the number of groups
- in the group set.
-
- [EFAULT] The argument _g_i_d_s_e_t specifies an invalid address.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- multgrps(1), setgroups(2), initgroups(3)
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ggggeeeettttggggrrrroooouuuuppppssss((((2222)))) ggggeeeettttggggrrrroooouuuuppppssss((((2222))))
-
-
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- The POSIX and 4.3BSD versions differ in the types of their _g_i_d_s_e_t
- parameter.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-